<div class="container main">
    <div class="row">
        <ul class="breadcrumb">
            <li><a href="#/">首页</a>  <span class="divider">/</span>
            </li>
            <li>个人信息</li>
        </ul>
    </div>
    <div class="row">
        <div class="col-md-5 well"> <a href="#/profile/edit">

                <img src="/static/img/user.jpg" class="img-polaroid img-responsive" alt="" />

            </a>
            <dl> <dt>基本信息 <a href="javascript:void(0)" ng-click="isEdit = !isEdit">编辑</a></dt>
                <dd
                class="mt10 div_profile">
                    <ul ng-show="!isEdit">
                        <li><span>{[ user.fullname ]}</span>
                        </li>
                        <li><span>{[ user.email ]}</span>
                        </li>
                        <li><span>{[ user.profile.phone ]}</span>
                        </li>
                        <li><span>{[ user.profile.birthday ]}</span>
                        </li>
                        <li><span>{[ user.profile.address ]}</span>
                        </li>
                        <li><span>{[ user.profile.comment ]}</span>
                        </li>
                    </ul>
                    <form class="form-horizontal" ng-show="isEdit">
                        <div class="control-group">
                            <label label-default="label-default" class="control-label label-default">姓名</label>
                            <div class="controls">
                                <input class="col-md-10" type="text" ng-model="user.fullname" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label label-default="label-default" class="control-label label-default">Email</label>
                            <div class="controls">
                                <input class="col-md-10" type="text" ng-model="user.email" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label label-default="label-default" class="control-label label-default">电话</label>
                            <div class="controls">
                                <input class="col-md-10" type="text" ng-model="user.profile.phone" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label label-default="label-default" class="control-label label-default">生日</label>
                            <div class="controls">
                                <input class="col-md-10" type="text" ng-model="user.profile.birthday"
                                />
                            </div>
                        </div>
                        <div class="control-group">
                            <label label-default="label-default" class="control-label label-default">地址</label>
                            <div class="controls">
                                <input class="col-md-10" type="text" ng-model="user.profile.address" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label label-default="label-default" class="control-label label-default">备注</label>
                            <div class="controls">
                                <input class="col-md-10" type="text" ng-model="user.profile.comment" />
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <button ng-click="updateInfo()" class="btn btn-primary btn-xs">提交</button>
                            </div>
                        </div>
                    </form>
                    </dd> <dt>

                    <a href="javascript:void(0)" ng-click="isCollapsed = !isCollapsed">修改密码</a>

                    <alert ng-repeat="alert in alertsChangePassword" type="alert.type" close="closeAlert($index)">

                        {[alert.msg]}

                    </alert>

                </dt>
                    <dd collapse="!isCollapsed">
                        <div class="mt10 div_profile">
                            <form class="form-horizontal" name="form_change_password">
                                <div class="control-group">
                                    <label label-default="label-default" class="control-label label-default">旧密码</label>
                                    <div class="controls">
                                        <input required="" class="col-md-10" type="password" ng-model="user.oldpassword"
                                        />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label label-default="label-default" class="control-label label-default">新密码</label>
                                    <div class="controls">
                                        <input name="password" required="" class="col-md-10" type="password" ng-model="user.newpassword"
                                        />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label label-default="label-default" class="control-label label-default">重新输入</label>
                                    <div class="controls">
                                        <input name="confirm_password" required="" class="col-md-10" type="password"
                                        ng-model="user.confirmpassword" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <div class="controls">
                                        <button ng-disabled="!form_change_password.$valid" ng-click="changePassword()"
                                        class="btn btn-primary btn-xs">提交</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </dd>
            </dl>
        </div>
        <div class="col-md-7">
            <div class="roundedCorners">
                 <h4>待办事项</h4>
                <hr /> <pre>

{[ user | json ]}

                </pre>
            </div>
        </div>
    </div>
</div>